package tk.ewentsai.pojo;

import java.util.Date;

public class Book {
        private int id;
        private String bookname;
        private String author;
        private Date releaseTime;
        private String intro;
        private float price;
        private float rate;
        private String aboutAuthor;

        public Book(int id, String bookname, String author, Date releaseTime, String intro, float price, float rate, String aboutAuthor) {
            this.id = id;
            this.bookname = bookname;
            this.author = author;
            this.releaseTime = releaseTime;
            this.intro = intro;
            this.price = price;
            this.rate = rate;
            this.aboutAuthor = aboutAuthor;
        }
        public Book(){ }

        public int getId() {
            return this.id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getBookname() {
            return this.bookname;
        }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookname='" + bookname + '\'' +
                ", author='" + author + '\'' +
                ", releaseTime=" + releaseTime +
                ", intro='" + intro + '\'' +
                ", price=" + price +
                ", rate=" + rate +
                ", aboutAuthor='" + aboutAuthor + '\'' +
                '}';
    }

    public String getAuthor() {
            return this.author;
        }

        public String getReleaseTime() {
            return this.releaseTime.toString();
        }

        public String getIntro() {
            return this.intro;
        }

        public float getPrice() {
            return this.price;
        }

        public float getRate() {
            return this.rate;
        }

        public String getAboutAuthor() {
            return this.aboutAuthor;
        }
}
